/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fleet.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.modules.fleet.entity.VehicleInformation;
import com.jeeplus.modules.fleet.mapper.VehicleInformationMapper;
import com.jeeplus.modules.fleet.entity.AccidentInformation;
import com.jeeplus.modules.fleet.mapper.AccidentInformationMapper;

/**
 * 自有车辆Service
 * @author sld
 * @version 2017-11-23
 */
@Service
@Transactional(readOnly = true)
public class VehicleInformationService extends CrudService<VehicleInformationMapper, VehicleInformation> {

	@Autowired
	private AccidentInformationMapper accidentInformationMapper;
	
	public VehicleInformation get(String id) {
		VehicleInformation vehicleInformation = super.get(id);
		return vehicleInformation;
	}
	
	public List<VehicleInformation> findList(VehicleInformation vehicleInformation) {
		return super.findList(vehicleInformation);
	}
	
	public Page<VehicleInformation> findPage(Page<VehicleInformation> page, VehicleInformation vehicleInformation) {
		return super.findPage(page, vehicleInformation);
	}
	
	@Transactional(readOnly = false)
	public void save(VehicleInformation vehicleInformation) {
		super.save(vehicleInformation);


	}
	
	@Transactional(readOnly = false)
	public void delete(VehicleInformation vehicleInformation) {
		super.delete(vehicleInformation);

	}
	
}